home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 15 / vi101.zip / VI.H < prev    next >
C/C++ Source or Header  |  1990-10-25  |  2KB  |  80 lines

  1. #include <windows.h>
  2. #include <ctype.h>
  3. #include <string.h>
  4. #include <stdio.h>
  5. #include <mydef.h>
  6.  
  7. #define CR 0x0d
  8. #define LF 0x0a
  9. #define BS 0x08
  10.  
  11.  
  12. #define IDM_ABOUT     0x100               /* menu id's */
  13. #define IDM_FILE      0x101
  14.  
  15. #define IDC_INVISIBLE 0x200
  16.  
  17. #define IDC_LISTBOX   0x201
  18. #define IDC_PATH      0x202
  19. #define IDC_TEXT      0x203
  20. #define IDC_RECT      0x204
  21.  
  22. #define XORIGIN 0
  23. #define YORIGIN 0
  24.  
  25. #define PAGES               1
  26. #define LINELENGTH          128
  27. #define LINESPERPAGE        50
  28. #define MAXLINES            LINESPERPAGE * PAGES
  29.  
  30. typedef struct
  31.      {
  32.      WORD wVirtKey;
  33.      int  iMessage;
  34.      WORD wRequest;
  35.      } KeyStruct;
  36.  
  37. typedef struct
  38.     {
  39.     WORD Reserved;
  40.     WORD ResourceType;
  41.     WORD ResourceCount;
  42.     } ICONFILEHDR;
  43.  
  44. typedef struct
  45.     {
  46.     BYTE Width;
  47.     BYTE Height;
  48.     BYTE ColorCount;
  49.     BYTE Reserved1;
  50.     WORD Reserved2;
  51.     WORD Reserved3;
  52.     DWORD DIBSize;
  53.     DWORD DIBOffset;
  54.     } ICONDIRECTORY;
  55. typedef ICONDIRECTORY FAR *LPICONDIRECTORY;
  56.  
  57.  
  58.  
  59. /*-------------------------------------------------------------- VI.C         */
  60. int PASCAL WinMain                (HANDLE Inst ,HANDLE hPrevInst ,LPSTR lpCmdLine ,int nCmdShow );
  61. BOOL      AppInit                 (HANDLE hInstance );
  62. long FAR PASCAL AppWndProc        (HWND hWnd ,uint message ,WORD wParam ,LONG lParam );
  63. void      AppCommand              (WORD wParam );
  64. void      VerticalScrollProcess   (WORD wParam ,LONG lParam );
  65. BOOL FAR PASCAL AppAbout          (HWND hDlg ,uint message ,WORD wParam ,LONG lParam );
  66. BOOL FAR PASCAL AppDlgProc        (HWND hDlg ,uint message ,WORD wParam ,LONG lParam );
  67. void      UpdateListBox           (HWND hDlg );
  68. WORD      GetListBoxIndex         (HWND hDlg );
  69. void      StartApplication        (void );
  70. void      Message                 (uchr *fmt_string ,...);
  71. void      MakeFileList            (void );
  72. void      AdjustScrollBar         (void );
  73. void      DisplayIconBitMap       (HANDLE hBuf ,uint xLoc ,uint yLoc );
  74. HANDLE    GetIconBitMap           (LPSTR FileName );
  75. void      ViewIcons               (HDC hDC );
  76. void      ViewIconRow             (HDC hDC ,int row );
  77. void      ShowIcon                (uchr *FileName ,uint xLoc ,uint yLoc );
  78.  
  79.  
  80.